package org.discala.samples.simple

import org.discala.ScopedContainer
import org.discala.util.logging.ConsoleLogger

/**
 * @author Chris Turner
 */
class DiContainer extends ScopedContainer
                  with ConsoleLogger
                  with InMemoryQuoteRepositoryComponent
                  with QuoteOfTheDayServiceComponent {
  val repository = singleton(() => new InMemoryQuoteRepository)
  val service = singleton(() => new QuoteOfTheDayService)
}
